package cn.com.shopec.erp.system.constant;

/**
 * 
 * @ClassName UserConstant
 * @Description 用户常量类
 * @author chengui
 * @date 2013-5-30 上午11:57:30
 */
public class SystemConstant {
	
	/** 删除标识:0-已删除. */
	public static final int DELETE_FLAG_0 = 0;
	/** 删除标识:1-未删除. */
	public static final int DELETE_FLAG_1 = 1;
	/** 成功常量. */
	public static final String SUCCESS = "success";
	/** 失败常量. */
	public static final String FAIL = "fail";
	/** UTF-8编码. */
	public static final String CHARSET_UTF8 = "UTF-8";
	/** 用户已存在. */
	public static final String USER_EXISTS_YES = "yes";
	/** 用户不存在. */
	public static final String USER_EXISTS_NO = "no";
	/** 角色编码已存在. */
	public static final String ROLE_CODE_EXISTS_YES = "yes";
	/** 角色编码不存在. */
	public static final String ROLE_CODE_EXISTS_NO = "no";
	/** 用户状态:1-正常. */
	public static final int USER_STATUS_1 = 1;
	/** 用户状态:2-锁定. */
	public static final int USER_STATUS_2 = 2;
	/** 用户性质:1-普通账户. */
	public static final int USER_NATURE_1 = 1;
	/** 用户性质:2-超级管理员. */
	public static final int USER_NATURE_2 = 2;
	/** 子菜单开始下标. */
	public static final int MENU_SIZE_START = 10;
	/** 顶级菜单开始下标. */
	public static final String ROOT_SIZE_START = "root";
	/** 平台顶级菜单开始下标. */
	public static final String ROOT_SIZE_START_0 = "root-0";
	/** 该用户不存在. */
	public static final String LOGINUSER_NOT_EXISTS = "该用户不存在 ";
	/** 用户登录次数限制. */
	public static final int USER_LOGIN_COUNT = 3;
	/** 该用户已被锁定. */
	public static final String LOGINUSER_IS_LUCKED = "操作频繁致用户被锁定,请等待系统解锁 ";
	/** 该用户已被锁定,提示解锁时间. */
	public static final String LOGINUSER_IS_LUCKED_DATE = "该用户已被锁定";
	/** 该用户已删除 . */
	public static final String LOGINUSER_IS_DELETED = "该用户已删除 ";
	/** 您输入的密码错误 . */
	public static final String PASSWORD_NOT_CORRECT = "您输入的密码错误 ";
	/** 保存到SESSION的登录用户信息的KEY值 . */
	public static final String LOGINUSER_SESSION = "user_name";
	/** 保存到SESSION的供应商用户信息的KEY值 . */
	public static final String LOGINSUPPLIER_SESSION = "supplier_name";
	/** 采购员. */
	public static final String PURCHASE_MAN = "PURCHASE_MAN";
	/** 采购主管. */
	public static final String PURCHASE_SUPERVISOR = "PURCHASE_SUPERVISOR";
	/** 采购总监. */
	public static final String PURCHASE_DIRECTOR = "PURCHASE_DIRECTOR";
	/** 运营主管. */
	public static final String OPERATION_SUPERVISOR = "OPERATION_SUPERVISOR";
	/** 财务负责人. */
	public static final String FINANCIAL_PRINCIPAL = "FINANCIAL_PRINCIPAL";
	/** 总经理. */
	public static final String GENERAL_MANAGER = "GENERAL_MANAGER";
	/** 仓库主管. */
	public static final String WAREHOUSE_SUPERVISOR = "WAREHOUSE_SUPERVISOR";
	/** 代销供应商. */
	public static final String CONSIGNMENT_SUPPLIER = "CONSIGNMENT_SUPPLIER";
	/** 购销供应商. */
	public static final String PURCHASE_SUPPLIER = "PURCHASE_SUPPLIER";
	/** 运营主管及采购总监对应的审核设置. */
	public static final int AUDIT_SETTING_2 = 2;
	/** 财务负责人对应的审核设置. */
	public static final int AUDIT_SETTING_3 = 3;
	/** 总经理对应的审核设置. */
	public static final int AUDIT_SETTING_4 = 4;
	/** 所有菜单. */
	public static final int MENU_TYPE = 0;
	/** 平台菜单. */
	public static final int MENU_TYPE_1 = 1;
	/** 供应商菜单. */
	public static final int MENU_TYPE_2 = 2;
	/** 供应商账号已锁定. */
	public static final String SUPPLIER_ACCOUNT_LUCKED = "1";
	/** 购销供应商. */
	public static final String SUPPLIER_ACCOUNT_1 = "1";
	/** 代销供应商. */
	public static final String SUPPLIER_ACCOUNT_2 = "2";
	/** 购销和代销供应商. */
	public static final String SUPPLIER_ACCOUNT_3 = "3";
	
}
